﻿package visualizer.code {
	
	// Imported Classes
	import flash.display.Graphics;
	import flash.display.Shape;
	import flash.display.Sprite;
	
	public class TrackProgressBar extends Sprite
	{
		// Variables
		var xPos:uint;
		var yPos:uint;
		var barWidth:uint;
		var barHeight:uint;
		
		var box:Shape;
		
		// Constructors
		public function TrackProgressBar(xPos:uint = 0, yPos:uint = 0, barWidth:uint = 100, barHeight:uint = 20)
		{
			this.xPos = xPos;
			this.yPos = yPos;
			this.barWidth = barWidth;
			this.barHeight = barHeight;
			this.box = new Shape();
		}
		
		// Functions
		public function drawBox():void
		{
			box.graphics.lineStyle(2,0x00FF00,1);
			box.graphics.beginFill(0xFFFFFF);
			box.graphics.moveTo(0,0);
			box.graphics.lineTo(100,0);
			box.graphics.lineTo(100,20);
			box.graphics.lineTo(0,20);
			box.graphics.lineTo(0,0);
			this.addChild(box);
		}
		
	}	
}